import request from '@/utils/request'

// 查询科室信息列表
export function listHospitalDepartment(query) {
  return request({
    url: '/business/hospitalDepartment/list',
    method: 'get',
    params: query
  })
}

// 查询科室信息所有列表
export function listAllHospitalDepartment(query) {
  return request({
    url: '/business/hospitalDepartment/listAll',
    method: 'get',
    params: query
  })
}

// 查询科室信息详细
export function getHospitalDepartment(id) {
  return request({
    url: '/business/hospitalDepartment/getInfo/' + id,
    method: 'get'
  })
}

// 新增科室信息
export function addHospitalDepartment(data) {
  return request({
    url: '/business/hospitalDepartment/add',
    method: 'post',
    data: data
  })
}

// 修改科室信息
export function updateHospitalDepartment(data) {
  return request({
    url: '/business/hospitalDepartment/edit',
    method: 'post',
    data: data
  })
}

// 删除科室信息
export function delHospitalDepartment(id) {
  return request({
    url: '/business/hospitalDepartment/remove/' + id,
    method: 'get'
  })
}
